package com.dave.gd.sysmgr.domain.entity;

import java.io.Serializable;
import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;


@Table(name = "el_role_permission")
public class RolePermission implements Serializable{//extends AbstractBaseEntity<Integer> {


    /**
     * .
     */
    private static final long serialVersionUID = -4995612090541986702L;

    /**
     * id
     */
    @Id
    @Column(name = "id")
    private Integer id=0;

    /**
     * 创建时间
     */
    @Column(name = "createtime")
    private Timestamp createtime;

    /**
     * 角色id
     */
    @Column(name = "role_id")
    private int roleId;

    /**
     * 情形
     */
    @Column(name = "state")
    private String state;

    /**
     * 更改时间
     */
    @Column(name = "uptime")
    private Timestamp uptime;

    /**
     * 更改者
     */
    @Column(name = "upter")
    private int upter;

    /**
     * 创建者
     */
    @Column(name = "creater")
    private int creater;

    /**
     * 权限id
     */
    @Column(name = "per_id")
    private int perId;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Timestamp getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Timestamp createtime) {
        this.createtime = createtime;
    }

    public int getRoleId() {
        return roleId;
    }

    public void setRoleId(int roleId) {
        this.roleId = roleId;
    }


    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public Timestamp getUptime() {
        return uptime;
    }

    public void setUptime(Timestamp uptime) {
        this.uptime = uptime;
    }

    public int getUpter() {
        return upter;
    }

    public void setUpter(int upter) {
        this.upter = upter;
    }

    public int getCreater() {
        return creater;
    }

    public void setCreater(int creater) {
        this.creater = creater;
    }

    public int getPerId() {
        return perId;
    }

    public void setPerId(int perId) {
        this.perId = perId;
    }


    

/*    @Override
    public Integer getId() {
        return this.id;
    }

    @Override
    public void setId(Integer id) {
        this.id =id;
    }
    
    public static IRolePermissionRepository repository() {
        return (IRolePermissionRepository) RepositoryRegister.getInstance()
                .getRepository(RolePermissionEntity.class);
    }
*/

}
